- name
- The name of the control to look at its actual type to create.
- defaultControl
- The default System.Windows.Forms.Control to return if the specified name was not mapped to a control.
- checkBaseType
- True to check that the new control must be derived from the base defaultControl. This is usefull when the framework expects some functionalities in the newly created control.
- args
- An array of System.Object used to initalize the created control.
Visual Basic (Declaration) | |
---|---|
Overloads Public Function GetWorkstsationControl( _ ByVal name As String, _ ByVal defaultControl As Control, _ ByVal checkBaseType As Boolean, _ ByVal ParamArray args() As Object _ ) As Control |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As WorkstationUIFactory Dim name As String Dim defaultControl As Control Dim checkBaseType As Boolean Dim args() As Object Dim value As Control value = instance.GetWorkstsationControl(name, defaultControl, checkBaseType, args) |
C# | |
---|---|
public Control GetWorkstsationControl( string name, Control defaultControl, bool checkBaseType, params object[] args ) |
Managed Extensions for C++ | |
---|---|
public: Control* GetWorkstsationControl( string* name, Control* defaultControl, bool checkBaseType, params Object*[]* args ) |
C++/CLI | |
---|---|
public: Control^ GetWorkstsationControl( String^ name, Control^ defaultControl, bool checkBaseType, ... array<Object^>^ args ) |
Parameters
- name
- The name of the control to look at its actual type to create.
- defaultControl
- The default System.Windows.Forms.Control to return if the specified name was not mapped to a control.
- checkBaseType
- True to check that the new control must be derived from the base defaultControl. This is usefull when the framework expects some functionalities in the newly created control.
- args
- An array of System.Object used to initalize the created control.
Return Value
The requested medical workstation control.All UI controls in the Medical Workstation are created using this function. This allows developers to override the default controls with their own custom controls. The name parameter is actually the class name of the control.
To provide your own type of a control. All you need to do is to update the WorkstationUISettings section in the application configuration file with the original controls name and the new type you want to use for that control.
The requested medical workstation control.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7